Update for new square selection

Modified some files in order to better interface with the new square
selection mechanism. Also added a max_squares variable to the
config.php file to let user define max number of squares allowed per
player.