Create printWorld function

printWorld function displays the array as a matrix in the browser