set buildBoard and generateTile
built buildBoard array
refractored buildBoard function