God allows Satan to exist to test mens spirit and to weed out those Judas's.
Satan is cast in the pit for 1,000 yrs then released a little while ;-). Also things play out the way God says because God already knows how it happens but not all things are according to his will.