Fixed all bug regarding motions (Hopefully), added world border limit.

Signed-off-by: UltimateGoDLikE <lohtonghong@hotmail.com>