Here is an algorithm given to me from professor David Forsythe for quickly determining visibility in a maze.