Fixed minor error in converting board to graph