Barney takes drastic measures to prevent Ted from moving into Robin’s apartment. Meanwhile, Marshall and Lily are discovering the ups and downs of having the apartment to themselves. Barney considers moving in with Marshall and Lily.