Encapsulates the Connection and Game logic into their own separate objects, and brings them together in a new 'main.js' file using a fancy callback method for executing game methods.