changes to game.cpp introduce onResize in vies