Made coins and enemies work as parameters