This fixes a rather annoying issue where you could sometimes double-jump. The problem was due to the fact that this.freedom['y-'] would oscillate true, false, true false every tick while on the ground. That is unavoidable due to the way collision works, but adding this else statement means that it doesn't mess up the state of canJump immediately after you jump. Now: no more double jump, woo.