Automatic Railway Gate Controller