Online Earning Games