added winner check conditional