O.K, the problem is that on the part where the board should be updating the marbles, it doesn't do it all. I really need help with this becuase I am loosing sleep because I can't figure it out, everything else I think I got down, so help please on the move function.Code:#include <iostream> using namespace std; int board[14]; void move(int board[], int pos, int turnNum); void update(int board[]); int main() { int pos; board[0] = 4; board[1] = 4; board[2] = 4; board[3] = 4; board[4] = 4; board[5] = 4; board[6] = 0; board[7] = 4; board[8] = 4; board[9] = 4; board[10] = 4; board[11] = 4; board[12] = 4; board[13] = 0; cout<<"Welcome to Mancala!\n"; cout<<"To play select a position on the board."; cout<<"\n\n"; cout<<"--------------------------------\n"; cout<<"| | 5 | 4 | 3 | 2 | 1 | 0 | |\n"; cout<<"| 6 |-----------------------| 13|\n"; cout<<"| | 7 | 8 | 9 | 10| 11| 12| |\n"; cout<<"--------------------------------\n"; int totalM = board[6] + board[13]; int turnNum = 1; while (totalM < 48) { update(board); if (turnNum == 1) { cout<<"\nPlayer 1: Select a postion: "; cin>> pos; if (pos = 7 || 8 || 9 || 10 || 11 || 12) { move(board, pos, turnNum); } else { cout<<"Please select another position: "; cin>> pos; } } } cin.get(); return 0; } void move(int board[], int pos, int turnNum) { int initPos = pos; for (int i = 0; i < board[pos] + 1; i++) { int curPos = pos + i; if (curPos >= 14) curPos -= 14; else if (curPos >= 28) curPos -= 28; if (turnNum == 1) { int * current1 = &(board[curPos]); if (current1 == &(board[6])) current1 = &(board[7]); *current1 += 1; } else if (turnNum == 2) { int * current2 = &(board[curPos]); if (current2 == &(board[13])) current2 = &(board[0]); *current2 += 1; } } board[initPos] = 0; } void update(int board[]) { cout<<"\n---------------------------------\n"; cout<<"| | "<<board[5]<<" | "<<board[4]<<" | "<<board[3]<<" | "<<board[2]<<" | "<<board[1]<<" | "<<board[0]<<" | |\n"; cout<<"| "<<board[6]<<" |-----------------------| "<<board[13]<<" |\n"; cout<<"| | "<<board[7]<<" | "<<board[8]<<" | "<<board[9]<<" | "<<board[10]<<" | "<<board[11]<<" | "<<board[12]<<" | |"; cout<<"\n---------------------------------\n"; }