Fixed recursion issue in connectPoints method.

Removed the check for start point not being in the bufferObject before flipping start and end points. The 'flipped' variable handles the infinite recursion scenario that the start point check was implemented to do.