a bit of code to controll the head of the robot