board and main classes