how to create a draftkings algorithm