validating knight moves