public void update(int xPos, int yPos, int width, int height) {
		int xLeft = xPos / size;
		int yLeft = yPos / size;
		int xRight = (xPos + width) / size;
		int yRight = (yPos + height) / size;
		int x = (xPos + width / 2) / size;
		int y = (yPos + height / 2) / size;
		if (x < getMaxX() && y < getMaxY())
			map[x][y] = 1;
		if (xLeft < getMaxX() && yLeft < getMaxY())
			map[xLeft][yLeft] = 1;
		if (xRight < getMaxX() && yRight < getMaxY())
			map[xRight][yRight] = 1;

		done = true;
		for (x = 0; x < map.length; x++) {
			for (y = 0; y < map[x].length; y++) {
				if (map[x][y] == 0) {
					done = false;
				}
			}
		}
	}