updated game code