(hopefully) fixed indexOutofbounds error for world