Source code for Gamewindow