Credit to @xOnic. Fixed glitch where sometimes you die from touching the edge instead of advancing to the next level.