Modified checkBoard. The board state is now passed to the view via JSON/JQuery