fixed bugs.

fixed following bugs.
- the number of each tile is beyond max(4).
- the number of opened tiles is beyond max(122).