Made velocity code cleaner and made movement smoother and got rendering ...

...prioritisation working