fixed the endless jumping (if you held jump) and the jumping while
falling (previously if you fell and pressed jump in mid-air, it would
still let you jump). The falling/jumping stuff should be refactored at
some point becuase I added more flags to the mess.