A Model for Predicting the Outcomes of Basketball Games