fixed bug while recieving serial input, added joystick functionality