AI.placeCards stackOverFlow fix