public void tick() {
		if(!Game.lost) {
			if((y <= 0) || (y >= Game.YSIZE)) {
				yspeed = -1 * yspeed;
			}
			if((x <= 0) || (x >= Game.XSIZE-20)) {
				xspeed = -1 * xspeed;
			}
			if(y+20 == Game.getPaddle().y && (x >= Game.getPaddle().x && x <= Game.getPaddle().x+100)) {
				yspeed = -1 * yspeed;
				Game.points++;
			}
			y += yspeed;
			x += xspeed;
			if(y == Game.YSIZE) {
				Game.lost = true;
			}
		}
	}