game logic updtaeQ