Trouble coding Servo motor to move 90 degrees

I'm fairly new to arduino myself but I'm not sure why you would move the servo twice in the setup(), if you must have you tried using a delay after the second write() command?

I suggest using void loop() to do any movements aside from your starting position, good luck!