Fixed a misplaced j++ causing infinite loops or skipped check checks.
Fixed a bug where wild horses could capture friendly kings.