attempt at making the jump function