Move printBoard to global section
Fixes recursive functions.

The return clause was missing before calling themselves.