def move_direction(x, y, direction, amount):
    """ Moves into a direction

    :param x: current x position
    :param y: current y position
    :param direction: facing direction
    :param amount: amount
    :return: x, y
    """
    if direction == 'N':
        y += amount
    elif direction == 'E':
        x += amount
    elif direction == 'S':
        y -= amount
    else:
        x -= amount

    return x, y