Improved the AI scoring function for target selection