update template matching to get points that is used for creating game grid.