There should be a waiting area where the timer doesn't start until the other player joins
Should timers be stored on the server?
Definitely should store time of submissions later
Once the second user joins, start timers on both clients. Start time will be saved to server as a date object. The time at which users made their moves can be figured out later. Ideas:
Moves contains an array of move arrays. The first element of the move array will contain the seconds or milliseconds since the game started. The second element will be an array of cells toggled.
Keep a separate array of move timestamps showing the milliseconds after the start of the game at which the moves occurred
There should be a waiting area where the timer doesn't start until the other player joins
Once the second user joins, start timers on both clients. Start time will be saved to server as a date object. The time at which users made their moves can be figured out later. Ideas: