Movement code finally works good.