Added some code to grab the position of sheep from database