func New(dom DOM, log Log, board *board.Board, canvas Canvas, createCanvas CanvasCreator) *Game {
	g := Game{
		dom:           dom,
		log:           log,
		board:         board,
		canvas:        canvas,
		canvasCreator: createCanvas,
	}
	return &g
}
// New creates a new game controller with references to the board and canvas.
New creates a new game controller with references to the board and canvas.
// New creates a new game controller with references to the board and canvas .
func New(dom DOM, log Log, board *board.Board, canvas Canvas, createCanvas CanvasCreator) *Game {
	g := Game{
		dom:           dom,
		log:           log,
		board:         board,
		canvas:        canvas,
		canvasCreator: createCanvas,
	}
	return &g
}
func New ( dom DOM , log Log , board * board . Board , canvas Canvas , createCanvas CanvasCreator ) * Game { g := Game { dom : dom , log : log , board : board , canvas : canvas , canvasCreator : createCanvas , } return & g }
New creates a new game controller with references to the board and canvas.
New creates a new game controller with references to the board and canvas .