Fix if statement.
Add action function that will decide if to move the paddle or shoot