public GameServer (int port)
    {

        //Load data from files
        loadAccounts();
        System.out.println("Done loading users");

	/* create socket server and wait for connection requests */
	try
	{
	    serverSocket = new ServerSocket (port);            
	    System.out.println ("Server waiting for client on port " + serverSocket.getLocalPort ());

	    //Loop continuously waiting for connections
	    while (true)
	    {

		// accept connection
		Socket socket = serverSocket.accept ();
		//System.out.println();
		//System.out.println("New client asked for a connection");

		// make a thread of it		
		//System.out.println(numclients + ", " + clients.length);
		TcpThread newclient = new TcpThread (socket);
		newclient.ID = flexclients.size ();		
		newclient.start ();
		flexclients.add (newclient);

		System.out.println ("Starting a thread for Client #" + flexclients.size ());		
	    }
	}
	catch (IOException e)
	{
	    System.out.println ("Exception on new ServerSocket: " + e);
	}
    }