added setboard debug function