Refactored BoardView class