Code for the slot machine.