Added grazing animals logic, bugfixes