Placement of home planets algorithm