pause game function, half working...