Cached the mask and bit shifts used to extract board values from the bitmap.  Hopefully it will improve performance a bit...