 		}
 	}
 	
-	func checkFitScore(c: Int, r: Int, vertical: Int, word: String) -> Int {
-		
-		if c < 1 || r < 1 || c >= self.columns || r >= self.rows {
+	func checkFitScore(inout col: Int, inout row: Int, vertical: Int, word: String) -> Int {
+		
+		if col < 1 || row < 1 || col >= self.columns || row >= self.rows {
 			return 0
 		}
-		
-		var col = c
-		var row = r
 		var count = 1
 		var score = 1
 		

		return score
	}
	
	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{
		return grid![row-1, col-1]
	}
	
	func checkIfCellClear(col: Int, row: Int) -> Bool {
		let cell = getCell(col, row: row)
		return cell == "-" ? true : false
	}
	
}
			
			if currentWordList.count == 0 {
				let vertical = randomInt(0, max: 1)
				var col = 1
				var row = 1

				if checkFitScore(&col, row: &row, vertical: vertical, word: word) > 0 {
					fit = true
					setWord(&col, row: &row, vertical: vertical, word: word, force: true)
				}
				
			}
			else {
				if count > 0 && count < coordlist.count {
					var col = coordlist[count][0]
					var row = coordlist[count][1]
					let vertical = coordlist[count][2]

					if coordlist[count][4] > 0 {
						fit = true
						setWord(&col, row: &row, vertical: vertical, word: word, force: true)
					}
				}
				else {
