allow the player to back up when being attacked. break out of loop when game ends. fix warnings.