Some high level advice: Fix your indendation. For example, the indentation is randomly increased on this line: choice_client_ice = gets.chomp.to_i. I mention this only because there is a lot of deep nesting here, which is confusing enough without incorrect indentation. Which brings me to... T...