Finished method isPointWithin in triangles class and now trying to fix error that occurs when I try to access the lenght of triangles within mouse click