Refactored module "board". Tests has been separated.