Refactor next tile, and board to use html table