Put update board into separate function