adding in a controller to better handle inputs from the player and enemies