Initializing the actor and critic networks