updated spawn tile function
added spawn tile test case