/////////////
//width, height, density, min step
System.out.println("Generate map...");
MapGenerator mapGen = new MapGenerator(20, 10, 0.44, 3);
Map map = mapGen.generateMap();
MapUI mapUI = new MapUI();
mapUI.create(map, -1);
System.out.println("success");
Game game = new Game(map, mapUI);
map.print();
GameServerRegistrator registrator = new GameServerRegistrator(game);
Thread registratorThread = new Thread(registrator);
registratorThread.start();