So if God knows what you’re going to do before you do it then when you do it how can we say you actually have free will? This question confuses the concept of foreknowledge with foreordination or forecausation to know the future and to cause the future are two different things. God may simply live outside of time and space he may live in the eternal now for the time-space continuum may be something that is created by God that does not apply to him therefore he knows all but that doesn’t mean he’s causing all. He may have actually chosen to create genuine freewill agents within his creation. It may just be that God has infinite relational knowledge of who you are that is he knows you better than you know yourself and so given whatever circumstances arise he knows how you’re going to respond and he knows how your response will cause someone else to respond because he knows them infinitely as well and he knows everyone infinitely so that he can see history moving forward and even just based on his infinite relational knowledge he can predict the future but that doesn’t mean he’s causing anyone to act in a certain way. Just because you know someone well doesn’t mean you can claim to have forced them to be that way. I know when I get home my wife’s gonna give me a big hug and a big kiss and she’s a good kisser but that doesn’t mean I forced her to kiss me. It just means I know her well and if I can do that in a limited sense think of how God can do that in an unlimited sense. Knowing the future is not the same as causing the future. It does raise the question though if God knew there was going to be so much pain and suffering that would eventually come our way why did he create us in the first place? But that’s another question.