Refactored getGameFromID to getGame. Added some overloaded functions to
getGame, specifically for finding a game by name and filtering by
platform. Refactored getPlatformFromID to getPlatform.

Added an apiRequest function that handles API requests, to keep code
duplication down.

Updated the sample with some new code.