public void tick(){
		if(y + ny >= 0 && y + ny <= maxY - height){
			y += ny;
		}else{
			ny *= -1;
			y += ny;
		}
		if(x + nx >= 0 && x + nx <= maxX -width){
			x += nx;
		}else{
			nx *=-1;
			x += nx;
		}
		if(x <= 0){
			x = 0;
		}
		if(x >= maxX -width){
			x = maxX -width;
		}
		if(y >= maxY -height){
			y = maxY -height;
		}
		if(y <= 0){
			y = 0;
		}
		this.setLocation(x, y);
		if(this.intersects(start.gs[start.currentLevel].player)){
			this.setDead(true);
			this.addBuff(start.gs[start.currentLevel].player);
		}
	}