private void doDebug(Graphics2D g){
		if(debug){
			if(canMove){
				g.setColor(Color.black);
				for(int i=0;i<moveX.length;i++){
					g.fill(new Ellipse2D.Double(moveX[i]-5,moveY[i]-5,10,10));
				}
				g.setColor(Color.red);
				g.setStroke(new BasicStroke(4,BasicStroke.CAP_ROUND,BasicStroke.JOIN_ROUND));
				for(int i=0;i<moveX.length;i++){
					g.draw(new Line2D.Double(moveX[i],moveY[i],moveX[(i+1)%moveX.length],moveY[(i+1)%moveX.length]));
				}
				byte tX=(byte)((moveX[to]-moveX[from])/Math.abs(moveX[to]-moveX[from]));
				byte tY=(byte)((moveY[to]-moveY[from])/Math.abs(moveY[to]-moveY[from]));
				g.setColor(Color.black);
				g.drawString("TX: " +tX,(int)centerX,(int)centerY-8);
				g.drawString("TY: " +tY,(int)centerX,(int)centerY+8);
			}
		}
	}