Detecting collision on specific sides

yeah sorry about that, the first answer i gave was pointing you in the wrong direction.