Extract board to a separate class.