Fixed some problems with movement friction. Still not working properly though.