public boolean run(){
		
		serverSocket = null;
		
		logger.logMessage("Starting Server...");
		
		while(true){
			try {
			    serverSocket = new ServerSocket(port);
			} 
			catch (IOException e) {
				logger.logMessage(Level.SEVERE,"Could not listen on port: " + port,e);
			    System.exit(-1);
			}
			logger.logMessage("Socket opened on port " + port + ".\nWaiting connection...");
			
			try {
			    clientSocket = serverSocket.accept();
			    recieveMessage();
			} 
			catch (IOException e) {
				logger.logMessage("Accept failed: 4444");
				
			    System.exit(-1);
			}
		}
		
	}