event emitter bugfix, game loop