implemented generic class
problem with global lists while killig animals, everything else solved