Added core and game check...
This is so the program won't crash if the core or game do not load.