Fixed the line bug and the velocity while walking diagonal