naively class-ified Board. Next revision will try to encapsulate more logic and take advantage of class structure