Add double-jump support.
Fix corner cases with jump detection; inefficient but works for now.