worked on checkgamecompletion