Edit to allow for multi directional side in quarry logic + code cleaning