During the times of pandemics, faster diagnosis plays a key role in the response efforts to contain the disease as well as reducing its spread. Computer-aided detection would save time and increase the quality of diagnosis in comparison with manual human diagnosis. Artificial Intelligence (AI) through deep learning is considered as a reliable method to design such systems. In this research paper, an AI based diagnosis approach has been suggested to tackle the COVID-19 pandemic. The proposed system employs a deep learning algorithm on chest x-ray images to detect the infected subjects. An enhanced Convolutional Neural Network (CNN) architecture has been designed with 22 layers which is then trained over a chest x-ray dataset. More after, a classification component has been introduced to classify the x-ray images into two categories (Covid-19 and not Covid-19) of infection. The system has been evaluated through a series of observations and experimentation. The experimental results have shown a promising performance in terms of accuracy. The system has diagnosed Covid-19 with accuracy of 95.7% and normal subjects with accuracy of 93.1 while it showed 96.7 accuracy on Pneumonia.