this creates a pin on the king which prevents you from moving the knight because you can't make your king get in check