Simplify the buildBoard function