Created test image of circle and fixed a bug that was found through test image. Also created checkDirection function for each pixel query