Added a max x and y for the joystick