Changed Stats class so that it follows the Singleton pattern