Fixed game not ending properly after checkmate