optimization: to create function loeschen and collision. Creation of the class coins