added code to alert player when enemy quits