fixed window rezising when restarting game