Added threading

Also added flags at top of Board.cpp to enable/disable a couple of
features.