My generic game code for XNA.