Updated parseBoard method