Ray Casting Algorithm To Flowchart