Added a backtracking step to placement algo