finished refactoring perform_slide and perform_jump
added some user interaction