translate draw view logic to SurfaceView,change sensor to accelerometer  and solve some bugs