fixing game freezes