fixing game cycle