Fixed more bugs with Fire Red. Exported more code into version-specific files.