rewrite the source code

Define the FPS sequence loop by recursion, recursive computation and
collision-type mobile computing.