Automatic Railway Gate controlling system