Controlling objects with the head motion