added game pause and game play