public static ArrayList<Rectangle2D> getMapSectors(Rectangle2D r) {
		ArrayList<Rectangle2D> platforms = new ArrayList<Rectangle2D>();
		
		Point p = new Point((int) (r.getX() / tileSize), (int) (r.getY() / tileSize));
		if(rectMap.containsKey(p)) {
			platforms.addAll(rectMap.get(p));
		}
		
		Point p2 = new Point((int) (r.getMaxX() / tileSize), (int) (r.getMaxY() / tileSize));
		if(p.x < p2.x) {
			for(int j = p.x; j<=p2.x; j++) {
				// Top Row
				if(getMap().containsKey(new Point(j, p.y))) {
					platforms.addAll(rectMap.get(new Point(j, p.y)));
				}
				// Bottom Row
				if(getMap().containsKey(new Point(j, p2.y))) {
					platforms.addAll(rectMap.get(new Point(j, p2.y)));
				}
			}
		}
		if(p.y < p2.y) {
			for(int j = p.y; j<=p2.y; j++) {
				// Left Side
				if(getMap().containsKey(new Point(p.x, j))) {
					platforms.addAll(rectMap.get(new Point(p.x, j)));
				}
				// Right Side
				if(getMap().containsKey(new Point(p2.x, j))) {
					platforms.addAll(rectMap.get(new Point(p2.x, j)));
				}
			}
		}
		
		return platforms;
	}