renaming check funtions
Adding checkColorAt function