fix finished game detection