for (int y = 0; y < heightInTiles; y++) { for (int x = 0; x < widthInTiles; x++) {
for (int y = 0; y < bounds.height; y++) { for (int x = 0; x < bounds.width; x++) {
    public boolean isUsed(Tile t) {        for (int y = 0; y < heightInTiles; y++) {            for (int x = 0; x < widthInTiles; x++) {                if (map[y][x] == t) {                    return true;                }            }        }        return false;    }