Fixed error that crashed program when user tried to move in an unavailable direction.