fix mixup with rows and cols when checking for above tile