@Override
	public void tick(InputHandler input, Level level)
	{
		boolean left = input.keys[KeyEvent.VK_LEFT];
		boolean right = input.keys[KeyEvent.VK_RIGHT];
		boolean up = input.keys[KeyEvent.VK_UP];
		boolean down = input.keys[KeyEvent.VK_DOWN];

		xx = 0;
		yy = 0;

		if (left)
			xx--;
		if (right)
			xx++;
		if (up)
			yy--;
		if (down)
			yy++;

		if (move2(0, yy * 2, level))
			move(0, yy * 2);
		if (move2(xx * 2, 0, level))
			move(xx * 2, 0);
		
		move2(0, 1, level);
		
		if (invTimer > 0)
			invTimer--;
	}