player's code to playing campaign mode