It seems like there's a very very small mistake in the code with Z's gender. I don't know, and it's not a big deal, but I figured I'd let you know anyway. Sorry if I'm mistaken.
ooh! Thank you for pointing this out! It's the wrong variable altogether which is why it's messing up (it's the variable for kestrel's gender)