implemented division and shuffling of animals