Add UpdateGame for cleaner updating code
Use UpdateGame and generalize main()