Changed error with moveRight code