Fixed coordinates to reflect 2d array structure.