Traffic Light Control For Automated Vehicle Gates