fix what I hope to be the last bug in the game logic