Fix critical bug in achievement handling and add remaining ones.