functional setBoard