@Override
	public void move() {
		isMoving = false;
		if (keyHandler.isPressed(LEFTKEY)) {
			x -= speed;
			direction = LEFT;
			isMoving = true;
		}
		if (keyHandler.isPressed(RIGHTKEY)) {
			x += speed;
			direction = RIGHT;
			isMoving = true;
		}
		if (keyHandler.isPressed(UPKEY)) {
			y -= speed;
			direction = UP;
			isMoving = true;
		}
		if (keyHandler.isPressed(DOWNKEY)) {
			y += speed;
			direction = DOWN;
			isMoving = true;
		}
		
		if (isMoving) {
			if (newPicFrame >= newPicTime) {
				picNum += picDir;
				if (picNum == PLAYERTILESET[0].length - 1 || picNum == 0) {
					picDir = -picDir;
				}
				
				newPicFrame = 0;
			} else {
				newPicFrame++;
			}
		} else {
			picNum = 2;
		}
	}