If the ball is excactly behind the board than it's a out of bounds.
But it is also depends how the referee saw it, the angle and so on.