- fixed game ended check