Added ending and xp gain