Changed to allow nonrectangular spawn areas