trying new method, optimizing by removing empty cornerArray cells