Now program is definitely broken, but its on the way on a new refactoring