Hold the screen to change the direction.
Thanks to Code4Fun for teaching me this and thanks to Pearlady3000 for helping me