Corrected the friction problem with a haxeflixel snippet.