added left and right to updateBoardGraphic