added an if statement with the checklose so I can check the losses and skip their turns