convert display array back to 2d