Merge pull request #2 from enuilin/master

Thing yes
Move check outside of while loop
Merge pull request #2 from Tzigarroth/master

Move checker outside of loop in board