well just because he knows doesnt mean that you do not have free will

let me use an analogy: if you video tape your self, then at that moment you have free will, and if you rewatch the tape you know what is going to happen but still at the moment of creation of the video you still had freewill.

so in a way our lives are like a video tape that god already watched. but we still have freewill at the moment of the video recording.