Fixed a whole bunch of shit
TO DO: fix perform_jump (not working)