added game end logic for when a player steps on the exit