Basis completed

Allows for two versions of the game to be played: one in console, and
one in graphics. Each give their own version of a single API call.
Cleaning up and adding comments for clarity