Refactored the BaseAIPlayer PlacePieces function.