separate some methods for player from MainSurfaceView.java