func madeStep(client string, value string) {

	i, j := model.GetIndices(value)

	result := model.GetResultInCell(client)

	enemy := model.GetPlayerOpposite(client)

	//fmt.Println(client+" now turn:"+strconv.FormatBool(findPlayer(playerList,client).Value.(Player).isHisTurn))
	model.SetPlayerFieldValue(client, i, j, result)
	model.SetPlayerTurn(client, TURN_AFTER)
	model.SetPlayerTurn(enemy, TURN_NOW)

	isVictory, q := model.CalculatePossibleVictory(client, i, j)

	fmt.Println(isVictory)
	fmt.Println(q.ToString())
	//fmt.Println(client+" now turn:"+strconv.FormatBool(findPlayer(playerList,client).Value.(Player).isHisTurn))
	model.ResizePlayerField(client, i, j)

	if isVictory {
		sendMessage(client, "YouWon:"+q.ToString())
		sendMessage(enemy, "YouLose:"+q.ToString())
	} else {
		sendMessage(client, "StepDone:")
		sendMessage(enemy, "MadeStep:"+value)
	}
}
func acceptInvitation(names string, colons int, client string, w http.ResponseWriter) {
	enemyName := names[:colons]
	//fmt.Println("enemy="+enemyName)

	model.SetPlayerSide(enemyName, CROSS)
	model.SetPlayerSide(client, ZEROS)

	model.SetPlayerTurn(enemyName, TURN_NOW)
	model.SetPlayerTurn(client, TURN_AFTER)

	model.SetPlayerStatus(client, OCCUPIED)
	model.SetPlayerStatus(enemyName, OCCUPIED)

	field := model.CreateNewField()

	model.SetPlayerField(client, field)
	model.SetPlayerField(enemyName, field)
	model.SetPlayerOpposite(client, enemyName)
	model.SetPlayerOpposite(enemyName, client)

	sendMessage(enemyName, "Confirmed:"+client)
}