game code fixes