showgan@tg says to YSITD result = { (x0,y0) for (x0,y0) in temp if x0 < n and y0 <n and x0 > 0 and y0 > 0}