Changed row, col, x and y initializations to 0.