Fixed problems with platforming, works well, at least for now