Replaced Dimension with immutable Size class

also decreased the size of config class via moving some elements to
their logical classes. Created base for different gameinterface logics