public void move(){
		x+=dx;
		y+=dy;
//		System.out.println(x);
//		System.out.println(y);
		
		if(x<0){
			x=0;
			dx=-dx;
		}
		if(x+XSIZE>=canvas.getWidth()){
			x= canvas.getWidth() - XSIZE;
			dx=-dx;
			
		}
		if(y<0){
			y=0;
			dy=-dy;
		}
		if(y+YSIZE>=canvas.getHeight()){
			y= canvas.getHeight() - YSIZE;
			dy=-dy;
			
		}
		canvas.repaint();
	}