refactor how the board is displayed