A casino game programmed only with javascript