changed name of initObstacle to spawnMob