for (int y = 0; y < myMap.getHeight() && !bFound; y++) { for (int x = 0; x < myMap.getWidth() && !bFound; x++) {
int startx = currentMatch == null ? 0 : currentMatch.x; int starty = currentMatch == null ? 0 : currentMatch.y;  for (int y = starty; y < myMap.getHeight() && !bFound; y++) { for (int x = startx; x < myMap.getWidth() && !bFound; x++) {
	private void find(Tile f) {		boolean bFound = false;						if(sl != null) {			myMap.removeLayerSpecial(sl);		} else {			sl = new SelectionLayer(myMap.getWidth(), myMap.getHeight());		}		for (int y = 0; y < myMap.getHeight() && !bFound; y++) {			for (int x = 0; x < myMap.getWidth() && !bFound; x++) {				ListIterator itr = myMap.getLayers();						while(itr.hasNext()) {					MapLayer layer = (MapLayer) itr.next();					Rectangle bounds = layer.getBounds();						if(layer.getTileAt(x,y) == (Tile) searchCBox.getSelectedItem()) {						if(currentMatch != null) {							if(currentMatch.equals(new Point(x,y))) {								continue;							}						}						sl.select(x,y);						bFound = true;						currentMatch = new Point(x,y);						break;					}				}			}		}		if(bFound) {			myMap.addLayerSpecial(sl);			myMap.touch();		}	}