Cleaning some code and fixing the initial position of the joystick