Realized I should iterate through rows different'y, but completed some of the placement algorithm