Fixed removing of game entities while iterating over them