Optimizing game performance part 3.1

optimized loops