fixed game end and added ghosts