changes in gamewindow.cpp