room collision code for tileboxes work