Java based slot machine program