Basically both pieces try to always move away from the goal, so you'll need to force them to the right spots. The knights being able to escape is intentional!