Made the sheep functionality for the second stage