find corner working for pieces, although finds nothing with plane rectangle