When it glitches (Frequently) Click the restart button on the top left
Thank you ShiftClickLearn for the tutorial to detect collisions that I modified a bit!