Improved plane movement

completely rewritten plane movement