That stupid colored small beasts want to die in a dark cavern. You have to save them making them disappear. To do this you can move them and when there are 3 or more of the same color they disappear.
In every level there's an estabilished number of that things to save.