The case-sensitive part would make sense, and indeed, changing the variable name seemed to fix it.
I'm using board in plenty of other places, but this was the only place where it actually appeared at the very beginning of a statement, which is certainly ambiguous from the parser's standpoint...