fixed game running while searching for match