Finished converting functions to use IntPtr instead of Pokemon