1995 eg b18a1 swap wiring

hey guys, imtrying to get the check engine light off but if im correct its cause the wiring correct? and anther question if you guys dont mind answering; in second gear at times when staring from first gear going into secod at 2000rmps the car wink gank a few times until i shift to 3rd, or i accelerate more i know this could be alot of things how do i pin point the problem?