trying to fix the bug where changing the dimensions while playing causes playing status to reset to false