fixed board.cpp