fixed bug in getRandomLocation() when x, z < 0