public void initServer() throws IOException{
		System.out.println("Server started");
		Server.packetHandels.add(new ServerPacketHandler(this));
		server = new ServerSocket(7777);
		while(true) {
			socket = server.accept();
			if(server.isClosed()) {
				break;
			}
			System.out.println("Connection");
			for(int i = 0; i < 4; i++) {
				if (updater[i] == null) {
					updater[i] = new ServerUpdateThread(socket, i, this);
					updater[i].setDaemon(true);
					updater[i].start();
					break;
				}
			}
		}
	}