Create game loop pattern