Refactored app, added updateAnimal(0 and updateView() functions