This is a very simple online engine that you can use to play games with other players online. It can have 2 players playing at a time and detect if a game is in progress. After each game the engine resets for the next game. It can also automatically disconnect if a player leaves or the connection between the players is too slow. (You can replace the messages with some other way to display the current status of the game.)