public void init(GameBoardCtrl gameboard) { // set gameboard to this this.gameboard = gameboard; InvalidateVisual(); }