world array working, drawing functions working

got rid of null pointer errors