Now works correctly in contrived situation where a king can jump a perfect loop back to where is started, hopefully didn't break anything in the process
Hopefully it now actually works, output still not it correct format