You are playing against a third strategy, called Tit for Tat. This has been an enormously successful strategy in computer tournaments. It plays by a very simple rule, which you should be able to work out yourself. Keep an eye on the outcomes of the games: does Tit for Tat win, lose or draw?
This tutorial is licensed under a Creative Commons Attribution License.