mup6050 cosplay eyes

hi
im hoping someone can help , i want to use a MUP6050 to control the movement of a number of servos using the X,Y,Z axes, ive been using some code i got with my kit and adding a mapping function but i just cant get the Z axes to work, help and thank you