basic ai working. only considers how high the columns would get, chooses the last one that produces the smallest column height