Added that character can't jump out of the window

if the number of steps to jump is higher than the height than it is
automatically jumping to the border but not higher than that.