turn game into an EventEmitter