ReUploaded board.cpp