Working tiles out of place algorithm