move code into BoardView