moved everything to functions of a big class
renamed main file, worked further on gui.rb