refactor and use space or enter to fire
press p to pause and unpause
reset when player is dead