Add end game check
Merge branch 'master' of https://github.com/beckbaibai/pvt