Added pause function in game