fixing 2d board class

The pairs implementation is still not quite correct. I also added a
function for printing the board map. I changed the board map to map from
keys to either 0 or 1 rather than to strings.