while((board.getgXPos() != board.getXPos()) && (board.getgYPos() != board.getYPos()))
{
system("cls");
board.printBoard();
board.moveBall();
}
I would like this while statement to continue repeating until both gxPos equals XPos & gyPos equals YPos.
I can't seem to figure out why the statement exits if either both x's are the same or if both y's are the same.