Optimize map painting activity.
Optimize archer logic code.