change while (true)... in game