Added mouse click detection, intended to be used for testing polygon intersection.