fixing a major bug in the game