add number 3 and re-calculate resource when win or lose
merge