Fixed the seg fault when clicking on the right side of the board.