add basic game loop