public static void main(String[] args) throws SlickException{
		//establish game event factory
		new ERGameEventFactory();
    	
		if(args.length==0){
    		args = new String[] {"-sc"};
    	}
    	
		
		
    	if(args[0].equals("-s") || args[0].equals("-sc")  ){//run the server on -s command
    		EmptyRoomServer server = new EmptyRoomServer(); 
        	server.start();							
    	}
    	if (args[0].equals("-c") || args[0].equals("-sc") ){

    		EmptyRoomSimulation client;
    		if(args[0].equals("-c") && args.length>1){
    	    	client = new EmptyRoomSimulation(args[1]);
    		} else{
    			client = new EmptyRoomSimulation("localhost");
    		}
    		
	    	//make client in network game framework
	    	
	    	client.start();
	    	
	    	//SLICK
	    	AppGameContainer app = new AppGameContainer(new EmptyRoom("", client));
	        app.setDisplayMode(800, 600, false);
	        app.setSmoothDeltas(true);
	        app.setTargetFrameRate(60);
	        app.setShowFPS(true);
	        
	        System.out.println("STARTING APP");
	        app.start();
    	}
	}