translated monty1.rb to english and optimized monty2.rb