bug fix: character is now moving to the border when the step size entered was too big