Setup the application so that it properly polls with AJAX requests to get the new state of the board. Now to write the board logic.