Fixed a bug

There was a bug that crashes the game if the user tries to move the
cursor outside of the console boundaries. I added an if statement that
fixed the problem.