fixed bug with getWindow code in game.cpp so that no copying is being done and window is being passed by reference