Move achievements to game component instead of global functions.

Going to test this in Hoodiequest asap. Unit tests look good.