How this works: It picks a random angle, and if that angle is on the list of angles that don't work, it picks another angle and repeats the process. If the angle isn't on that list, it goes in that direction until it touches something. If it touches the wall, it adds that angle to the bad angles, and if it touches the flag, it stops the project.
This is based on ""ai" test".