So a few assumptions

-There is a God who created everything
-God is all powerful
-God is all knowing

With these in mind God created the world with the ability to change anything and knowing everything to include seeing through time. This justifys the position that everything that happens is in line with Gods purpose. If these premises are accepted anyone believing them has to accept that they are in the subset of determinism called fatalism. When you ask 'Why did my friend die' you can answer it with 'Its part of Gods plan' and justify it with the excuse that 'We can not know Gods will.'

But

How can free will exist under these circumstances? If we have an all powerful and all knowing creator he knew every decision we would make the second he created the universe as he did. Further- he knew how changing 1 molecule of the world at the point of creation would change an individuals actions because he could see through time.

So how can we believe in free will if we accept the model of fatalism that comes with the premis that God is all knowing and all powerful?
And if we demand that we have free will how can we do so while maintaining that God is both all powerful and all knowing?

I would love to hear an answer that does not revert to existential nihilism