frame method for paused game added