public static void createNetGame(Socket Toserv, ObjectOutputStream out, ObjectInputStream in, String user)
    {   
        try
        {            
            AppGameContainer app = new AppGameContainer(new GameFrame(Toserv, out, in, user));
            app.setDisplayMode(viewW, viewH, false);
            app.setVSync(true);             
            app.start();
            
        }
        catch (SlickException e)
        {
            e.printStackTrace();
        }
    }