let phases determine if there is a winner