Implemented a toString method for boards.