Set buildBoard and generateTile functions