properly resize game at the startup