How to Beat Online Slot Machines