updated the game key logic