Check if game has been finished