changed calculateSpeed in Physic.cs