Fixed bug where wolf keeps walking at the end