added tests and code to board class