You need to defend the cave from animals.
To do so click them few times.
You can also buy barricades, every animal's hit into barricade counts as half of click.
Be aware that the barricades will break when hit enough times.