changed so MainMethod is constructor,

made grid and method to calc sides.
Merge branch 'master' of https://github.com/Glassig/Memory