public void placeCollectableBlock(Player p, Color c){
		//do check for collision with other world items
		String path = null;
		if(c == Color.red){
			path = COLLLECTABLEBLOCK_RED_PATH;
		}else if(c == Color.green){
			path = COLLLECTABLEBLOCK_GREEN_PATH;
		}else if(c == Color.blue){
			path = COLLLECTABLEBLOCK_BLUE_PATH;
		}else if(c == Color.yellow){
			path = COLLLECTABLEBLOCK_YELLOW_PATH;
		}
		System.out.println("path = " + path);
		CollectableBlock cb =  new CollectableBlock(this, p.getX() + (p.getWidth() - blockWidth)/2, p.getY() + p.getWidth() - blockHeight, path);
		p.setY(p.getY() - (cb.width + 15));
		placedCollectableBlocks.add(cb);
		pManager.checkPattern(placedCollectableBlocks, p);
		//check if the placed pattern
		double mdist = 9999999;
		int saveIndex = -1;
		Pattern pattern = null;
		for(int i = 0; i < patterns.size(); i++){
			pattern = patterns.get(i);
			double temp = Math.sqrt(Math.pow(p.getX() - pattern.x, 2) + Math.pow(p.getY() - pattern.y, 2));
			if(temp < mdist){
				mdist = temp;
				saveIndex = i;
			}
		}
		if(saveIndex != -1 && patterns.size() > saveIndex && pManager.matchPatternArray(patterns.get(saveIndex).pArr))
			patterns.remove(saveIndex);
		else{
			System.out.println("fail");

		}
	}