Events now work in main game loop.