Checks if x and y are inside this array in the range x=0 until width and y=0 until height ignoring startX and startY