Thank you Gilberto, yeah the win state checking is still buggy in several cases. If you were able to bring the giraffe back it means it didn't go out of bounds, since the hero is constrained to those bounds too. I intentionally left one space beyond the first and last giraffes so they have room to scramble (but that would have only been apparent if I got to decorate the level space with some walls or fences, so it's cool ^^' )
Thanks for the comment!