Problems with servo motor and wifi shield

Hey guys,
I’m making a project where the user controls a servo motor with Blynk. It’s not with a slider, instead, the user presses a button and the servo alternates between set angles. To be clear, I don’t have a slider because I only want two angle options that go back and forth with the press of a button. I set LEDs to turn on at each angle. When I test without the servo attached, the LEDs alternate fine with each press of the button in Blynk. But when I attach the servo, it stops working and the serial monitor reads: “Connecting to blynk-cloud.com:8442” repeatedly. I just downloaded Blynk a couple weeks ago. The wifi shield is new and I updated the firmware. I’ll copy the sketch below. The apostrophes at the beginning aren’t in the actual code.
Thanks

'#define BLYNK_PRINT Serial
'#include <'SPI.h>
'#include <'WiFi.h>
'#include <'BlynkSimpleWifi.h>
'#include <'Servo.h>
Servo myServo;
char auth[] = “x”;
char ssid[] = “x”;
char pass[] = “x”;

void setup()
{
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
myServo.attach(6);
pinMode(red,OUTPUT);
pinMode(green,OUTPUT);
pinMode(yellow,OUTPUT);
}

boolean lockState = LOW;

void loop()
{
digitalWrite(red,HIGH);
Serial.print("start ");
boolean pinState = digitalRead(9);
Serial.println(pinState);

Blynk.run();

if (pinState==HIGH){
if (lockState == LOW){
myServo.write(150);
digitalWrite(yellow,LOW);
digitalWrite(green,HIGH);
lockState = HIGH;
delay(1000);
}
else if (lockState == HIGH){
myServo.write(20);
digitalWrite(green,LOW);
digitalWrite(yellow,HIGH);
lockState = LOW;
delay(1000);
}
}
delay(500);
}

Hello. Delays are not allowed in main loop. You need to use either timer or change the way you use them. Please see basic blynk examples fro more details.