Sutherland-Hodgman algorithm implementation, not working