public List<Square> getAdjacentSquares(Location location)
    {
    	List<Square> adjacent = new LinkedList<Square>();
    	int row = location.getRow();
    	int col = location.getCol();
    	for(int rOffset = -1; rOffset <= 1; rOffset++) {
    		int nextRow = row + rOffset;
    		if(nextRow >= 0 && nextRow < rows) {
    			for(int cOffset = -1; cOffset <= 1; cOffset++) {
    				int nextCol = col + cOffset;
    				if(nextCol >= 0 && nextCol < cols && (rOffset != 0 || cOffset != 0)) {
    					Square square = grid[nextRow][nextCol];
    					if(!square.getPressed()){
    						adjacent.add(grid[nextRow][nextCol]);
    					}
    				}
    			}
    		}
    	}
    	return adjacent;
    }