Monk, sorry man but honestly it makes no sense.
Psyah, you mean Allah changes his mind? So our actions are a surprise to him?
If he knows what we are going to do, and its all pre-written, then again it doesn't make sense. If he has defined generally that this action will lead to this outcome, and doesn't know what action we will choose, and the defined outcomes occur as and when we perform certain actions and make decisions, then it makes sense. Which one is it then? Either he is all-knowing and everything is destined to be the way it occurs, and we are mere puppets acting on all pre-determined set of rules and actions. OR he doesn't know what we will do and what path we will take, and then reacts to our actions - which honestly makes more sense.
Peace Jaanwar
You need to refrain from thinking within the framework of temporal and limited restraints.
Consider this, that I go to watch a film in the cinema, I am watching it and it takes me 2 whole hours to watch it. At the beginning I had no knowledge of what would be at the end. However now consider 'a being' that does not experience 'duration'. This Being is permanently manifest so the beginning of the film is just like the end. It is as if all parts of the movie are being watched in the same instant. And even this analogy is not befitting, but it approaches an understanding we can fathom.
Likewise, think of a teacher who knows his students very well. They are taking their exams. Based on the 'capabilities' of the students, the teacher can make a 'good guess' at who will pass and who will not. However, now consider that this teacher is a perfect guesser and can determine the percentage that each will get. Without 'interference' this teacher can predict the scores. Nearing this analogy is the concept of Divine Knowledge compared to Divine Intervention.
Intervention will only be given when we ask for it. To Allah (SWT) "when we ask" is not important because the term "when" implies a time restraint which means the language is only applicable for our purposes.
Another good model to use is the idea of asymptote.
This is a curve that approaches a value but never quite reaches it. Given an infiinte unit of time the curve will reach the value. However this is apparent to the observer of the curve, according to the 'curve' it is constantly moving away and cannot detect that an end point it near.
Event horizons are also similar to this concept - look up black holes for suitable analogies.