Moved joystick logic and behaviour to the new Joystick.swift file