Cris before answering yur question, first and foremost I feel obligated to say something, I completely understand why peeps are atheist (I was one b4). I can understand and even relate to your reasons. I used to be a immature and take things the way it is givenm to me without researching it more. God is just made up because were bored. People who prays are delusional and hallucinating. We wish of heaven because our life sucks on earth (even though rich and wealthy ppl believes of heaven), christians are brainwashed but atheist arent (LOL), bible is a lie and all miracles as well, they are just "Mythology", founding fathers are atheists, america didnt become succesfull because christians died for this country (lies one after another) etc. etc. I was like this until I experience something different.... called the truth...
About your answer, your question has been an ongoing questions for centuries, this was a long debate in the christian community, How can God know all things, even the future, for if that was the case, then there is no freewill and He is fully responsible for our actions...
"Freewill" is according to our actions "Knowledge" is according to God, from present to the future. We adhere to freewill because we have no clue of the event that is to come, so we live according to our judgment, this is called freewill. We will be talking doctrines of the faith, be mature and hold yourself back in saying "your hallucinating", ok?
Now before everything else in the doctrine of the faith, there were "spirits". Angels as what they call it, Lucifer being the head of the spirits. When God created Adam and Eve, they were designed to be obedient and serve Him. Now Lucifer's pride grew as God gave him more authority, he was kicked out of "heavens" the name of God's place, as punishment for HIS ACTIONS and his followers went with him. He became a wanderer everywhere not knowing where to go, Lucifer in an attempt to anger God then tried to decieve adam and eve into betraying God. Ever since then Lucifer found this to be effective idea in giving God pain, because He cannot directly defeat God, he found us to be a good tool for revenge, ever since then human suffering came into this world and God shared that with us, the devil started it all (please be mature for a while and stop saying "oh blaim it on the devil delusional guy", LOL).
Now did God knows all things before it happened? Yes He did, it is silly to say that the spirits of the devil can predict the future but God cant (This isnt really "prediciton" but pure knowledge). However His knowledge of it has nothing to do with its responsibility.
YOU ARE RIGHT, GOD IS RESPONSIBLE FOR DESIGNING BEINGS WITH JUDGMENT AND FREEWILL, FROM SPIRITS WE CALL "ANGELS" TO HUMANS. WHAT IS THE RESULT OF THIS GOD'S DESIGN? GOOD WORKS AND AT THE SAME TIME BAD WORKS. BUT GOD DIDNT ACT ON THOSE ACTIONS, WE DID, HE ONLY CREATED FREEWILL AND JUDGMENT AND FROM THERE WE TOOK OVER, EVEN THOUGH EVERY ACTIONS IN THE FUTURE GOD KNOWS. GIFTS CAN BE ABUSED OR USED PROPERLY, HALF AND HALF CHANCE. THERE IS INDEED GOOD THINGS THAT COMES OUT OF OUR FREEWILL AND THE ANGEL'S, BUT THERES ALSO BAD ONES, BUT DID GOD DO ALL THESE? NO! BUT WHO DESIGNED THE FREEWILL AND JUDGMENT WHICH RESULTED IN GOOD AND BAD DEEDS? GOD DID...PERIOD..WHO ARE YOU TO QUESTION HIM OF HIS DECISIONS? DID YOU WANT GOD TO CREATE ROBOTS AND LOVE HIM BECAUSE THEY HAVE NO CHOICE? SO WHAT IF GOD WANTS TO CREATE BEINGS WITH JUDGMENT WHO LOVES HIM UNCONDITIONALLY BY CHOICE AND NOT BY FORCE, WHO ARE YOU TO TELL HIM WHAT TO DO. YOU CAN EITHER REJECT HIM OR LOVE HIM, HE DOESNT WANT YOU TO REJECT HIM FOR THAT IS NOT WHAT YOU ARE DESIGNED FOR, HE WANTS YOU TO LOVE HIM FOR THAT IS THE REASON WHY YOU AND THE ANGELS ARE DESIGNED FOR. PERIOD.