"Stack around the variable 'board' was corrupted" error in this code. But, why!?!

Printable View