refactoring
auto spawning spawnBox at friendInterval()