Improved SPIP

* Always extending the right chain now at the end
* Fixed a bug that caused the final path not to be valid in every case