Added side detection when placing blocks