pattern logic; character speed;