changing the name of the pic and setting up endgame