player encoding\parsing
some game logic