A library for the game logic of pokémon battles.