Very strange...this IS the solution. Did you try picking up a tile and placing it again? Did you initially place the tiles "wrong" so the hint would pop up? Don't know what happened there..but you did it correct!
Yes I did try picking it up a placing it again. and no I didnt place the tiles wrong before it. I'm curious does your code actually try to get the sheep to escape to verify the solution or does it just check if its the same solution that you gave?