Fixed error when generating list of valid jump moves
Removed debug statement
Refactoring and code tidying