fixed the bug when there were no leap moves
removed some commented out test code