TRIANGLE DETECTION DONE