PWM Code to for mosfet gate

i agree with you that the problem in the digitalWrite() section, Can you help me modifying the code and set the timers well ? also i need the phase shift to be 180 not 90