Fix the loop handling
Add the sample game