Added DEBUG mode for AI