public int[] update() {
		
		int[] pos = new int[6];
		
		if(oldx != -1) {pos[0] = Math.round(oldx); oldx = -1;}
		else           {pos[0] = Math.round(x);}
		
		if(oldy != -1) {pos[1] = Math.round(oldy); oldy = -1;}
		else           {pos[1] = Math.round(y);}
		
		timePassed = System.currentTimeMillis() - lastUpdate;
		lastUpdate = System.currentTimeMillis();
		
		x += vx*timePassed;
		y += vy*timePassed;
		hitBox.setLocation((int) x, (int) y);
		
		pos[2] = Math.round(x);
		pos[3] = Math.round(y);
		pos[4] = maxDim.width;
		pos[5] = maxDim.height;
		
		return pos;
		
	}