Added collision detection for coins