Fixed a bug caused by a typo in the new boardMasks lookup table that could cause an infinte loop.