Added tail movement, changed to use ALLEGRO_KEYBOARD_STATE instead of keyboard events