fixing side/corner use case, improper calculation of nearby corners to a side