CECS 471 Project 2  Due 5 pm Tu July 31

A server will manage a NIM game (for simplicity, no graphics).  Two players will sign up with the server.  The game starts with 15 tokens and each player can take 1, 2, or 3 at a turn.  The player who takes the last token loses.  Devise a simple protocol for the communication.  The server must tell one of the players to move.  When a player moves it can pop up a Swing input dialog (JOptionPane) for the user to enter the number of pieces to remove.  The server should send a message to both players with the current number of tokens.  Each player prints the current number of tokens in the console window.  It’s probably easiest for the players to send the number of tokens to remove as a string.  The server can convert to an integer to do the subtraction.  When the game is over the server should send messages to both the winner and the loser and close down.