Basketball simulation engine