Refactored PokemonGameEngine and added unit test