Edited board class and added tests.