public void nextLevel(int newGrid) {
		gameCounter = 0;
		
		
		

		if(newGrid==1){
			grid = new MemoryGrid(grid.getSize(),grid.getNumImage());
			grid.shuffle();
			imgIcons= new ArrayList<ImageIcon>();
			loadImageIcons();
			System.out.println(1);
		}
		else
			grid.flipAllBack();
		
		buildTiles();
		resizeIcon();
		if (timer != null) timer.stop();

		firstImageFlipped = false;
		mainFrame.addKeyListener(this);
		mainFrame.setFocusable(true);
		mainFrame.setFocusTraversalKeysEnabled(false);
		//startTime=System.currentTimeMillis();
	}