Main processor

First version with working simple map generator.