refactor ai placement methods, place them into AiPlacement module