fixed glitch and fixed the double jump/duck bug