Fixed calculating end of arena. Reduced threads.