Update Joystick.cpp

commented out if statements
changed to different file, used for loops