added jumping + option for max # of jumps