added tests and code of board class