Some algorithms for Neopets.