Moving placing logic to placer.h/cpp