Wrote some javascript to reset the gameboard, and to find out which player owns a given square.