clean up code in SampleGameActivity.