Dynamic Research and Development Games: Applications to Endogenous Growth Theory