debugged setBoard