Simulation code of Table tennis movement