Draw the area and flag for second stage image

1. Calculate the position for each match item
2. draw the flag for each item
3. get flag resource id