Suppose you love to watch basketball. There was a basketball game which had happened mid-week but you don't have the chance to watch it until the weekend. Your driving home one day and your friend tells you the score of the game. Oh no! You had not seen the game yet, but now you know the ending!
Pshhh...You still watch the recorded game on the weekend even after knowing the score.
Just because you know the score of the game, does that change the outcome of the players?
No. The players are still freely doing what they are doing.
God knows the end from the beginning. Just cause He knows the ending, it doesn't mean that He is controlling us. You still have free will.