add temporary player motion code