Now a basic map is properly generated and painted, solved a bug related with the concurrent executing