Delete some magic numbers, add item placing algorithm.