Refactoring, Introduced a board class.