Edited betOneButtonPressed function in slot machine project