Fixed NullPointerException when using a mocked board. Would like to be
able to mock a Board such that this isn't necessary, but I can't find a
way.