Board class and test refactoring