public static void main(String[] args) {

    	int playerCount = 2;
    	int rows = 3;
    	int cols = 3;
    	
    	if(args.length == 3){
    		playerCount = Integer.valueOf(args[0]);
    		rows = Integer.valueOf(args[1]);
    		cols = Integer.valueOf(args[2]);
    	}
    	
    	if(args.length == 2){
    		playerCount = Integer.valueOf(args[0]);
    		rows = Integer.valueOf(args[1]);
    		cols = rows;
    	}
    	
    	for(int i = 1; i <= playerCount; i++){
    		gamesToWinsMap.put("Player" + i, 0);
    	}
    	
    	//lets play 100 games and see the wins and ties
        playGames(100, playerCount, rows, cols);

        System.out.println("Played 100 games:");
        
        for(int i = 1; i <= playerCount; i++){
        	System.out.println("Number wins by Player " + i + ": " + gamesToWinsMap.get("Player " + i));
        }
        
        System.out.println("Number of ties: " + gamesToWinsMap.get(TIE));
    }