Add comments to ai player functions