add game pause function