Did some bounds checking to prevent IndexErrors to freeze up movement.