fixed buy method in soda machine.rb