public LinkedList<Point> getAdjacentPoints(int x, int y){
		LinkedList<Point> adjacents = new LinkedList<Point>();
		int cx,cy;
		for(int i = -1; i <= 1; i++){
			for(int j = -1; j <= 1; j++){
				cx = x + i;
				cy = y + j;
				if(cx >= 0 && cx < gridDims.width && 
						cy >= 0 && cy < gridDims.height &&
						!(i == 0 && j == 0)){
					adjacents.add(new Point(cx, cy));
						}	

			}	
		}
		return adjacents;
	}