fixed the errors in horserace - a missing readline