Investigation of nucleon-nucleon interaction with confined one gluon exchange potential and one pion exchange potential