Slot Machine Implementation in React.js