Take the dimensions of objects into account

Take the dimensions of objects into account when calculating which objects are on which tiles.