improve drawLastMoveHighlight function‘s speed.