implemented most achievement functionality