Added constraints on gets + some debugging

Added bounds checking to getting the board size and percentage of mines.
Also debugged a little using the online demo.  Testing the entire thing
is still needed.