game completion logic