Refactored out some duplicate game controller code