 		return nCoordlist
 	}
 	
+	func randomInt(min: Int, max:Int) -> Int {
+		return min + Int(arc4random_uniform(UInt32(max - min + 1)))
+	}
+	
 	func fitAndAdd(word: String) {
 		var fit = false
 		var count = 0

		while !fit && count < maxLoops {
			
			if currentWordList.count == 0 {
				let vertical = 0
				let col = 1
				let row = 1
			}
			else {
			}
			
			count += 1

	}
	
	func setWord(col: Int, row: Int, vertical: Int, word: String, force: Bool = false) {
		if force {
			//let word = Word(word: word, col: col, row: row, vertical: vertical)
			currentWordList.append(word)
			var r = row
			var c = col
			
			for letter in word.characters {
				setCell(c, row: r, value: String(letter))
				if vertical == 0 {
					r += 1
				}
				else {
					c += 1
				}
			}
		}
	}
	
	func setCell(col: Int, row: Int, value: String) {
		grid![row - 1, col - 1] = value
	}
 
	func getCell(col: Int, row: Int) -> String{
