made character speed not hard-coded