dictionary and game logic