My basic code implementing Double-Buffers, Key Polling, and other Game Graphic Functionalities