fixes minor game logic bugs