
This is the logic of the game rewritten to support multiple players.

