Update main.cpp

removed creation of array and replaced it with the worldArray class call