Added a auto x y system

Added a auto x y system