Dragon curve JAVA