updated game with correct provided code