Started working on a joystick to direction subroutine