Optimized game algorithm by using C array and __unsafe_unretained pointers. Next: get rid of C arrays to see if it had any impact on performance.