Use core.match in main game loop