Build a simple game loop